From: Varun Wadekar Date: Wed, 12 Dec 2018 23:22:27 +0000 (-0800) Subject: build: find "armclang" string in the 'CC' variable X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=fd18a8fcb8ec5d63f8eac9c0ea8077c48680a603;p=project%2Fbcm63xx%2Fatf.git build: find "armclang" string in the 'CC' variable This patch modifies the search criteria to see if we are using 'armclang' as the compiler. Switch over to using 'findstring' which enables platforms to do fancy stuff using scripts e.g. check if armclang timed out and retry compilation. Change-Id: If2162ebadb9033f6457a4e8d4243345e711defe6 Signed-off-by: Kalyani Chidambaram Vaidyanathan Signed-off-by: Varun Wadekar --- diff --git a/Makefile b/Makefile index 9525d411..18fdfe7d 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ target32-directive = -target armv8a-none-eabi march32-directive = -march=armv8-a endif -ifeq ($(notdir $(CC)),armclang) +ifneq ($(findstring armclang,$(notdir $(CC))),) TF_CFLAGS_aarch32 = -target arm-arm-none-eabi $(march32-directive) TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a LD = $(LINKER)